import * as Cesium from 'cesium';

const viewerObj = {
  viewer: null,
  options: {
    infoBox: false,
    animation: false,
    shouldAnimate: true,
    timeline: false,
    fullscreenButton: true,
    selectionIndicator: false,
    infoBox: false,
    baseLayerPicker: false,
    scene3DOnly: true,
    geocoder: false,
    homeButton: false,
    shadows: true,
  }
}
const clickEntity = []
// const viewer = new Cesium.Viewer('cesiumContainer', viewerObj.options);

let viewer
const initViewer = (divId) => {
  viewer = new Cesium.Viewer(divId, viewerObj.options);
  return viewer
}

export { viewerObj, clickEntity ,initViewer}
export default Cesium